<%@ page contentType="text/html" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
/*
 *  Copyright (c) 2010 Peter Lényi
 *  Licensed under The BSD License
 *
 * @author  Peter Lényi
 * @version 20100509F2
 */
%>
<fmt:bundle basename="Gui" prefix="Gui.">
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type"   content="text/html;charset=UTF-8"/>
        <meta http-equiv="pragma"         content="no-cache"/>
        <meta http-equiv="cache-control"  content="no-cache"/>
        <meta name="generator"    content="Gem File Server"/>
        <meta name="robot"        content="none"/>
        <meta name="googlebot"    content="noarchive"/>
        <%@include file="../WEB-INF/jspf/style.jsp" %>
        <title><fmt:message key="page.file.uploadmeta.title" /></title>
    </head>
    <body onload="document.getElementById('form.title').focus();">
        <%@include file="../WEB-INF/jspf/header.jsp" %>
        <%@include file="../WEB-INF/jspf/sitenav.jsp" %>
        <section>
            <c:if test="${not empty sessionScope.msg}">
                <article id="a0">
                    <header>
                        <h3><fmt:message key="page.msg" /></h3>
                    </header>
                    <ul>
                    <c:forEach items="${sessionScope.msg}" var="msg">
                        <li><c:out value="${msg}" /></li>
                    </c:forEach>
                    </ul>
                </article>
                <% session.removeAttribute("msg"); %>
            </c:if>
            <article id="a1">
                <header>
                    <h3><fmt:message key="page.file.uploadmeta.title" /></h3>
                </header>
                    <form action="<c:out value="${pageContext.request.contextPath}" />/file/uploadmeta/post" method="post">
                    <fieldset>
                        <legend><fmt:message key="file.form.meta.label" /></legend>
                        <table>
                            <tr>
                                <th scope="row"><label for="form.title" title="<fmt:message key="file.form.title.tooltip" />"><fmt:message key="file.form.title.label" /></label></th>
                                <td><input id="form.title" name="form.title" type="text" /></td>
                            </tr>
                            <tr>
                                <th scope="row"><label for="form.comment" title="<fmt:message key="file.form.comment.tooltip" />"><fmt:message key="file.form.comment.label" /></label></th>
                                <td><textarea id="form.comment" name="form.comment" rows="12"></textarea></td>
                            </tr>
                        </table>
                    </fieldset>
                    <fieldset>
                        <legend><fmt:message key="file.form.acl.label" /></legend>
                        <table>
                            <tr>
                                <th scope="row"><label for="form.owner" title="<fmt:message key="file.form.owner.tooltip" />"><fmt:message key="file.form.owner.label" /></label></th>
                                <td><input id="form.owner" name="form.owner" type="text" value="Anon" /></td>
                            </tr>
                            <tr>
                                <th scope="row"><label for="form.password" title="<fmt:message key="file.form.password.tooltip" />"><fmt:message key="file.form.password.label" /></label></th>
                                <td><input id="form.password" name="form.password" type="text" /></td>
                            </tr>
                        </table>
                    </fieldset>
                    <input id="form.submit" name="form.submit" type="submit" value="<fmt:message key="action.file.uploadmeta.do" />" />
                </form>
            </article>
        </section>
        <%@include file="../WEB-INF/jspf/footer.jsp" %>
    </body>
</html>
</fmt:bundle>